#ifndef FIRSTLEVELWIDGET_H
#define FIRSTLEVELWIDGET_H


#include "bmp.h"
#include "lcd.h"

#include "cfont.h"
#include "touch.h"

#include "button.h"

#include <list>
#include <fstream>
#include <map>

class FirstLevelWidget
{
public:
    FirstLevelWidget();

    int initTextData(const char*fileName);
    void updateUI();

    bool selectItem(int &x,int &y);//根据点击的坐标判断 选中项
    std::string currentItem();
    int exec();

private:
    //存储从文件中获取的学科名字
    std::list<Button> m_list;
    std::string m_cItem; //保存当前选中项
};

#endif // FIRSTLEVELWIDGET_H
